
<div class="jquery-slider<?php echo $this->params->css_suffix; ?>">
	<input id="jquery-slider-<?php echo $this->params->name; ?>" type="slider" name="<?php echo $this->params->name; ?>" <?php if ($this->params->default_value != ""): ?>value="<?php echo $this->params->default_value; ?>"<?php endif; ?>/>
</div>

<script type="text/javascript" charset="utf-8">
	JQ("#jquery-slider-<?php echo $this->params->name; ?>").slider(
		{
			from: <?php echo $this->params->from; ?>,
			to: <?php echo $this->params->to; ?>,
			<?php if ($this->params->step != ""): ?>
			step: <?php echo $this->params->step; ?>,
			<?php endif; ?>
			<?php if ($this->params->scale != ""): ?>
			scale: <?php echo $this->params->scale; ?>,
			<?php endif; ?>
			<?php if ($this->params->smooth != ""): ?>
			smooth: <?php echo $this->params->smooth; ?>,
			<?php endif; ?>
			<?php if ($this->params->heterogeneity != ""): ?>
			heterogeneity: <?php echo $this->params->heterogeneity; ?>,
			<?php endif; ?>
			<?php if ($this->params->round != ""): ?>
			round: <?php echo $this->params->round; ?>,
			<?php endif; ?>
			<?php if ($this->params->dimension != ""): ?>
			dimension: '<?php echo $this->params->dimension; ?>',
			<?php endif; ?>
			<?php if (count($this->params->callbacks) >= 1): ?>
			callback: function() { jquery_slider_<?php echo $this->params->name; ?>_callback(); },
			<?php endif; ?>
			<?php if ($this->params->skin != ""): ?>
			skin: "<?php echo $this->params->skin; ?>"
			<?php endif; ?>
		});
		
	<?php if (count($this->params->callbacks) >= 1): ?>
	function jquery_slider_<?php echo $this->params->name; ?>_callback()
	{
		<?php foreach ($this->params->callbacks as $line): ?>
		<?php echo $line; ?>
		<?php endforeach; ?>
	}
	<?php endif; ?>
	
</script>

